<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<form id="pagerForm" action="demo/database/dwzOrgLookup.html">
	<input type="hidden" name="pageNum" value="1" /> <input type="hidden" name="numPerPage" value="${model.numPerPage}" /> <input type="hidden" name="orderField" value="${param.orderField}" /> <input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<div class="pageContent">
	<table class="table" layoutH="118" targetType="dialog" width="100%">
		<tbody>
			<tr>
				<input type="hidden" name="id" value="${requestScope.id}"/>
				<p>
				<shiro:hasPermission name="/merchantOrder/merchantOrder/updateOrder">
				<a class="${requestScope.depart == '财务部' ?'button':'buttonDisabled'}" href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/updateOrder?id=${requestScope.id}&str=accept" target="ajaxTodo"><span>接受订单</span></a>
				</shiro:hasPermission>
				</p>
				<p>
				<shiro:hasPermission name="/merchantOrder/merchantOrder/updateOrder">
				<a class="${requestScope.depart == '仓库部' ?'button':'buttonDisabled'}" href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/updateOrder?id=${requestScope.id}&str=send" target="ajaxTodo"><span>发货订单</span></a>
				</shiro:hasPermission>
				</p>
				<p>
				<shiro:hasPermission name="/merchantOrder/merchantOrder/updateOrder">
				<a class="button" href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/updateOrder?id=${requestScope.id}&str=cancel" target="ajaxTodo"><span>取消订单</span></a>
				</shiro:hasPermission>
				</p>
				<p>
				<shiro:hasPermission name="/merchantOrder/merchantOrder/finishOrder">
				<a class="button" href="${pageContext.request.contextPath}/merchantOrder/merchantOrder/finishOrder?id=${requestScope.id}" target="ajaxTodo"><span>完成订单</span></a>
				</shiro:hasPermission>
				</p>
			</tr>
		</tbody>
	</table>
</div>